package com.lx.vo;

import java.io.Serializable;
import java.util.List;

public class Node implements Serializable {
    private Integer id;
    private String title;
    private List<Node> children;

    public Node() {
    }

    public Node(Integer id, String title) {
        this.id = id;
        this.title = title;
    }

    public Node(Integer id, String title, List<Node> children) {
        this.id = id;
        this.title = title;
        this.children = children;
    }

    public List<Node> getChildren() {
        return children;
    }

    public void setChildren(List<Node> children) {
        this.children = children;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    @Override
    public String toString() {
        return "Node{" +
                "id=" + id +
                ", title='" + title + '\'' +
                ", children=" + children +
                '}';
    }
}
